<?php
//define("USER_N","Abdulla");
//
//$a = 4;
//$a_cc = 5;
//$w4 = 9;
//
//$d = $a+$a_cc;
//
//echo $d;
//echo "<br>";
//echo USER_N;

// 讲解global
//$a = 4;
//function myFun(){
//    global $a;
//    $b = $a + 4;
//    echo $b;
//}
//myFun();

//讲解 static
//function myFun(){
//    static $a = 1;
//    $a++;
//    echo $a;
//}
//myFun();
//echo "<br>";
//myFun();
//echo "<br>";
//myFun();
//echo "<br>";
//myFun();
//echo "<br>";
//myFun();

//讲解 parameter
//myFun函数的定义
function myFun($a){
    echo $a;
}

//调用函数
myFun("Abdulla");

echo "<br>";

myFun("haha");


?>